package cn.hx.mall.sell.entity;

import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;

/**
 * 首页轮播广告表(SmsHomeAdvertise)实体类
 *
 * @author makejava
 * @since 2022-11-02 16:10:30
 */
public class HomeAdvertise implements Serializable {
    private static final long serialVersionUID = -42557849315630266L;

    private Integer id;

    private String name;
    /**
     * 轮播位置：0->PC首页轮播；1->app首页轮播
     */
    private Integer type;

    private String pic;

    private String title;

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Object startTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Object endTime;
    /**
     * 上下线状态：0->下线；1->上线
     */
    private Integer status;
    /**
     * 点击数
     */
    private Integer clickCount;
    /**
     * 下单数
     */
    private Integer orderCount;
    /**
     * 链接地址
     */
    private String url;
    /**
     * 备注
     */
    private String note;
    /**
     * 排序
     */
    private Integer sort;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getPic() {
        return pic;
    }

    public void setPic(String pic) {
        this.pic = pic;
    }

    public Object getStartTime() {
        return startTime;
    }

    public void setStartTime(Object startTime) {
        this.startTime = startTime;
    }

    public Object getEndTime() {
        return endTime;
    }

    public void setEndTime(Object endTime) {
        this.endTime = endTime;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getClickCount() {
        return clickCount;
    }

    public void setClickCount(Integer clickCount) {
        this.clickCount = clickCount;
    }

    public Integer getOrderCount() {
        return orderCount;
    }

    public void setOrderCount(Integer orderCount) {
        this.orderCount = orderCount;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    @Override
    public String toString() {
        return "HomeAdvertise{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", type=" + type +
                ", pic='" + pic + '\'' +
                ", startTime=" + startTime +
                ", endTime=" + endTime +
                ", status=" + status +
                ", clickCount=" + clickCount +
                ", orderCount=" + orderCount +
                ", url='" + url + '\'' +
                ", note='" + note + '\'' +
                ", sort=" + sort +
                '}';
    }
}